<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="javascript:history.back(-1);">返回</a></li>
	</ul>
	<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('AdminLogi/expEditPost')}">
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="form-required">*</span>快递单号:</label>
			<div class="col-md-6 col-sm-10">
				<input type="text" class="form-control" name="express_num" value="{$express_num}" placeholder="请输入快递单号">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="form-required">*</span>快递公司代码:</label>
			<div class="col-md-6 col-sm-10">
				<select name="code" class="form-control">
					<foreach name="codes" item="vo">
						<option value="{$vo.name}" <if condition="$code eq $vo['name']">selected</if> >{$vo.name}</option>
					</foreach>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="form-required">*</span>时间:</label>
			<div class="col-md-6 col-sm-10">
				<input class="form-control js-bootstrap-datetime" type="text" name="time" value="{$time|date='Y-m-d H:i:s',###}">
			</div>
		</div>
		<input type="hidden" name="status" value="1">
		<div class="form-group">
			<label class="col-sm-2 control-label">状态:</label>
			<div class="col-md-6 col-sm-10">
				<select name="status" class="form-control">
					<foreach name="arrStatus" key="k" item="vo">
						<option value="{$vo.id}" <if condition="$status eq $vo['id']">selected</if> >{$vo.name}</option>
					</foreach>
				</select>
			</div>
		</div>
		<div class="col-sm-offset-2 col-sm-10">
		    <input type="hidden" class="form-control" name="id" value="{$id}">
			<button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
			<a class="btn btn-default" href="__URL__">返回</a>
		</div>
	</form>

</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    $(document).on("click",".item-place .del_item",function(){
        $(this).parent().parent().remove();
    });

    function confirm() {
    	var price = $('price').val();
    	var union = $('union').val();
        var html = '<tr><td>'+union+'</td><td>'+price+'/kg</td><td><a class="del_item btn btn-danger btn-sm" href="javascript:;">x</a></td><input type="hidden" name="price[]" value="'+price+'"><input type="hidden" name="union[]" value="'+union+'"></tr>';
        $('').append(html);
    }
</script>
</body>
</html>